#include<iostream>
using namespace std;
int main() 
{
	int i,total=0,total2;
	const int end=100;
	for(i=end;i!=0;i--)
	{
		total+=i;
	}
	total2=(1+end)*end/2;
	cout<<total<<endl;
	cout<<total2<<endl;
	return 0;
}
